<template>
  <h2>博客预览</h2>
  <article-card v-for="(article, index) in articles" :key="index">
    <template v-slot:article-title>
      <el-link><span>{{ article.title }}</span></el-link>
    </template>
    <template v-slot:article-content>
      {{ article.content }}
    </template>
  </article-card>
</template>

<script>
import ArticleCard from "@/views/blog/childComps/articles/ArticleCard";

export default {
  name: "BlogArticles",
  components: {
    ArticleCard,

  },
  data() {
    return {
      articles: [
        {
          title: "第一篇博客",
          content: "第一篇博客的内容",
          article_id: "1"
        },
        {
          title: "第二篇博客",
          content: "第二篇博客的内容",
          article_id: "2"
        },
        {
          title: "第三篇博客",
          content: "第三篇博客的内容",
          article_id: "3"
        },
      ]
    }
  }
}
</script>

<style scoped>

</style>
